﻿@model Wedo.Domain.Models.SysParam
<fieldset>
    <legend>@Html.DisplayNameFor(m => m)</legend>
    <div class="layout-onecolumn">
        <div class="editor-label">
            类别
        </div>
        <div class="editor-field">
         @if (Model== null)
         {
            @Html.DropDownList("Parent", "")
         }
         else { 
            @ViewData["ParentText"]
         }
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="editor-label">
            @Html.DisplayNameFor(model => model.ParamText)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ParamText)
            @Html.ValidationMessageFor(model => model.ParamText)
        </div>
    </div>
    <div class="layout-onecolumn">
        <div class="editor-label">
            @Html.DisplayNameFor(model => model.ParamValue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ParamValue)
            @Html.ValidationMessageFor(model => model.ParamValue)
        </div>
    </div>
</fieldset>
